<template>
  <h1>{{ msg }}</h1>
  <button @click="store.changeCount">count is: {{ store.count }}</button>
</template>

<script>
import {useCountStore} from '../store/counter'
export default {
  name: 'HelloWorld',
  props: {
    msg: String,
  },
  setup(){
    const store = useCountStore()
    return{
      store
    }
  }
}
</script>
